/**
 * 转菊花
 * Name = waiting
 * DateTime = Sun Jan 16 2022 20:14:26 GMT+0800 (中国标准时间)
 * Author = Created by zhj9922
 * FileBasename = waiting.ts
 * gitee： https://gitee.com/coyeking
 */
 
import { _decorator, Component, Sprite} from 'cc';
const { ccclass, property } = _decorator;
 
@ccclass('waiting')
export class waiting extends Component {
    @property({
        type: Sprite,
        displayName:'旋转精灵',
        tooltip: '旋转精灵'
    })
    target: Sprite = null;
	
	update (dt) {
        this.target.node.angle = this.target.node.angle - dt*360;
    }
}

